package com.pengpeng.sheepfoldmall.product.dao;

import com.pengpeng.sheepfoldmall.product.entity.AttrEntity;
import com.pengpeng.sheepfoldmall.product.entity.ProductAttrValueEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * spu属性值
 * 
 * @author pengpeng
 * @email pengpeng@gmail.com
 * @date 2023-08-30 15:43:37
 */
@Mapper
public interface ProductAttrValueDao extends BaseMapper<ProductAttrValueEntity> {

    /**
     * 查询当前spu所有可展示的规格属性
     * @param spuId
     * @return
     */
    List<ProductAttrValueEntity> qryEnableSearchAttrBySpuId(@Param("spuId") Long spuId);
}
